import axios from '@/utils/request.js'

export const getPostList = (params) => {
  return axios({
    url: '/post',
    params
  })
}

//发布文章
export const publishPost = function (data) {
  return axios({
    method: 'post',
    url: '/post',
    data
  })
}	